package com.java2401.yangnan.mapper;

import com.java2401.yangnan.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.Date;
import java.util.List;

@Mapper
public interface UserMapper {
    User selectByPrimaryKey(Integer id);
    User selectByCard(String card);
    List<User> allUserPage();
    int insert(User user);
    List<User> selectDName(String dname);
    int update(User user);
    List<User> selectAllByDel(List<Integer> ids);
    int deleteAll(@Param("ids") List<Integer> ids);
    int deleteByPrimaryKey(Integer id);
    List<User> selectByDname(@Param("name") String name , @Param("age") Integer age,@Param("startTime") Date startTime,@Param("endTime") Date endTime);
}
